<?php
/**
 *  站点数据填充
 */
use Faker\Generator as Faker;

$factory->define(App\Models\Site::class, function (Faker $faker) {

    $title = $faker->sentence();


    $updated_at = $faker->dateTimeThisMonth();
    // 传参为生成最大时间不超过，创建时间永远比更改时间要早
    $created_at = $faker->dateTimeThisMonth($updated_at);

    return [
        'title' => $title,
        'video_link' => $faker->url,
        'video_title' => $faker->sentence(),
        'top_image_src' => $faker->imageUrl($width = 640, $height = 480, 'fashion'),
        'top_image_link' => $faker->url,
        'template_color' => $faker->rgbCssColor,
        'qrcode_link' => $faker->url,
        'created_at' => $created_at,
        'updated_at' => $updated_at,
    ];



});
